package com.xtaller.test.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;


/**
 * @version V1.0
 * @author: Taller
 * @date: 2019-08-06
 * @Description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "Test-VO")
public class UserVo {
    @ApiModelProperty(value = "用户姓名")
    @Size(min = 2, max = 12, message = "长度必须在2-12个字符之间")
    private String name;

    @ApiModelProperty(value = "用户年龄")
    @Min(10)
    @Max(120)
    private int age;

    private int version;
}
